List Collections
Lists collections in a cluster.
GET
https://${MILVUS_URI}/v1/vector/collections
Example
List all collections in a cluster:
export MILVUS_URI="http://localhost:19530"
curl --request GET \
--url "${MILVUS_URI}/v1/vector/collections" \
--header "accept: application/json" \
--header "content-type: application/json"
Sample response:
{
code: 200,
data: [
"collection1",
"collection2",
...
"collectionN",
]
}
Request
Parameters
No query parameters required
No path parameters required
Request Body
No request body required
Response
Returns a list of collections in the specified cluster.
Response Bodies
- Response body if we process your request successfully
{
"code": 200,
"data": {}
}
- Response body if we failed to process your request
{
"code": integer,
"message": string
}
Properties
The properties in the returned response are listed in the following table.
Property | Description |
---|---|
code | integer Indicates whether the request succeeds.
|
data | array A data array of strings. |
message | string Indicates the possible reason for the reported error. |
Possible Errors
Error Code | Description |
---|---|
800 | database not found |
1800 | user hasn’t authenticate |